package cc.zy.base.hr.mapper;


import cc.zy.base.hr.entity.HrDeptSynLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author ljy
 * @time 2022/03/09 21:03:03
 */
@Repository
public interface HrDeptSynLogMapper extends BaseMapper<HrDeptSynLog> {
    /**
     * 查找部门信息
     *
     * @param page    分页对象
     * @param hrDeptSynLog 用户对象，用于传递查询条件
     * @return Ipage
     */
    <T> IPage<HrDeptSynLog> getHrDeptSynLogDetailPage(Page<T> page, @Param("hrDeptSynLog") HrDeptSynLog hrDeptSynLog);

    /**
     * 统计部门总数
     * @param hrDeptSynLog
     * @return
     */
    long countHrDeptSynLogDetail(@Param("hrDept") HrDeptSynLog hrDeptSynLog);

    /**
     * 同步日志
     * @param hrDeptSynLog
     */
    void createHrDeptSynLog(@Param("hrDeptSynLog") HrDeptSynLog hrDeptSynLog);
}
